//理财直融
import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  //列表查询
  tableList: (query) => api.post(`${config.interfaces.type5}instrument-server/financingRegulation/getFinancingRegulationInfo`, query),
  //新增/编辑
  saveData: (query) => api.post(`${config.interfaces.type5}instrument-server/financingRegulation/saveOrUpdate`, query),
  //根据证券代码回填
  baseCodeReponse: (query) => api.get(`${config.interfaces.type5}instrument-server/financingRegulation/backfill`, query),
  //根据id查询详情
  getDetail: (query) => api.get(`${config.interfaces.type5}instrument-server/financingRegulation/getBndRegulationInfoById`, query),
  //批量确认
  confimData: (query) => api.post(`${config.interfaces.type5}instrument-server/financingRegulation/confirm`, query),
  //删除
  deleteById: (query) => api.get(`${config.interfaces.type5}instrument-server/financingRegulation/deleteById`, query),
};
